package cn.edu.scau.cmi.yangjiamin.singleormulti;

public class ChairmanSingle {
	private static ChairmanSingle chairmanSingle;
	private String name;
	
	private ChairmanSingle(String name) {
		this.name = name;
	}
	
	public static ChairmanSingle getInstance(String name) {
		if(chairmanSingle == null) {
			chairmanSingle = new ChairmanSingle(name);
			return chairmanSingle;
		}else
			return chairmanSingle;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}

}
